﻿using System;
using System.Net;
using System.Reflection;
using ReportWizard.DataAccess;
using ReportWizard.Entities;

namespace ReportWizard.Helpers
{
    public class Globals
    {
        public static string AssemblyTitle
        {
            get
            {
                return
                    ((AssemblyTitleAttribute)
                     Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly(), typeof (AssemblyTitleAttribute))).
                        Title;
            }
        }

        public static string Host { 
            get { return Dns.GetHostName(); }
        }

        public static string TargetFormProfile { get; set; }

        public static bool OnlyVisibleItems { get; set; }

        public static UserInfo CurrentUser { get; set; }

        public static Report CurrentReport { get; set; }
    }
}
